<template>
	<div>404 错误！你访问的资源不存在</div>
	<div>将在{{ second }}秒后返回原页面</div>
</template>

<script setup>
	import { ref } from "vue";
	import router from "@/router";
	const second = ref(8);
	const timer = setInterval(() => {
		second.value--;
		if (second.value === 0) {
			clearInterval(timer);
			router.go(-2);
		}
	}, 1000);
</script>
